//
//  MBCommentController.m
//  MiBaoTu
//
//  Created by 彭鹏 on 16/9/20.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import "MBCommentController.h"
#import "MBCommitCell.h"
@interface MBCommentController ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation MBCommentController
{
    UITableView *_tableView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"全部评论 (5)";
    [self setupNavBar];
    [self setupUI];
}

- (void)setupUI {
    _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) style:UITableViewStylePlain];
    _tableView.delegate = self;
    _tableView.dataSource = self;
    _tableView.rowHeight = 73;
    _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    [self.view addSubview:_tableView];
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    
    return 5;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    MBCommitCell *cell = [MBCommitCell cellWithTableView:tableView];
    return cell;
}



- (void)setupNavBar {
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"fanhui"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]style:UIBarButtonItemStylePlain target:self action:@selector(navigationBackButton)];
    
    [self setRightPlayerItem];
}






-(void)navigationBackButton {
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - 点击事件
- (void)playingPage {
    
    NSLog(@"跳转到点击页面");
}


@end
